#!/bin/sh
date
who
pwd
printf "Now is: \"%s\".\n" "`date`"
printf "HOME is: %s.\n" "$HOME"

today=`date +%d%m%y`
ls -ltrh >> ${today}.log

printf "show wc << used method.\n"
wc <<eof
new
what
eof

expr 1 + 34
var3=$[(6/(3-1))]
echo $var3

v=3
vs="scale=4"
echo "how to use bc:"
bc <<er
$vs
1/$v
10.0/3
er

echo "use bc with |:"
echo $?
var=`echo "scale=4; 5/3-3; 1/3"| bc`
echo $?
printf "%f\n" $var
echo $?

exit 1 
